package com.ruoyi.boss.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 t_order
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serviceName;

    /** 车辆级别 */
    @Excel(name = "车辆级别")
    private Long vehicleLevel;

    /** 上车地址 */
    @Excel(name = "上车地址")
    private String upAddress;

    /** 下车地址 */
    @Excel(name = "下车地址")
    private String downAddress;

    /** 订车人 */
    @Excel(name = "订车人")
    private String vehiclePeople;

    /** 订车人手机号 */
    @Excel(name = "订车人手机号")
    private String vehiclePhone;

    /** 用车人 */
    @Excel(name = "用车人")
    private String usePeople;

    /** 用车人手机号 */
    @Excel(name = "用车人手机号")
    private String usePhone;

    /** 司机 */
    @Excel(name = "司机")
    private String driverName;

    /** 司机手机号 */
    @Excel(name = "司机手机号")
    private String driverPhone;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderPrice;

    /** 服务时长 */
    @Excel(name = "服务时长")
    private String serviceTime;

    /** 服务里程 */
    @Excel(name = "服务里程")
    private String serviceMileage;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private Long payId;

    public String getTradeNumber() {
        return tradeNumber;
    }

    public void setTradeNumber(String tradeNumber) {
        this.tradeNumber = tradeNumber;
    }

    /** 交易号 */
    private String tradeNumber;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 用车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单来源 */
    @Excel(name = "订单来源")
    private Long orderForm;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderStatus;

    /** 是否使用优惠卷 */
    @Excel(name = "是否使用优惠卷")
    private Long couponId;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private Long serviceType;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private Long payStatus;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }

    public void setVehicleLevel(Long vehicleLevel) 
    {
        this.vehicleLevel = vehicleLevel;
    }

    public Long getVehicleLevel() 
    {
        return vehicleLevel;
    }

    public void setUpAddress(String upAddress) 
    {
        this.upAddress = upAddress;
    }

    public String getUpAddress() 
    {
        return upAddress;
    }

    public void setDownAddress(String downAddress) 
    {
        this.downAddress = downAddress;
    }

    public String getDownAddress() 
    {
        return downAddress;
    }

    public void setVehiclePeople(String vehiclePeople) 
    {
        this.vehiclePeople = vehiclePeople;
    }

    public String getVehiclePeople() 
    {
        return vehiclePeople;
    }

    public void setVehiclePhone(String vehiclePhone) 
    {
        this.vehiclePhone = vehiclePhone;
    }

    public String getVehiclePhone() 
    {
        return vehiclePhone;
    }

    public void setUsePeople(String usePeople) 
    {
        this.usePeople = usePeople;
    }

    public String getUsePeople() 
    {
        return usePeople;
    }

    public void setUsePhone(String usePhone) 
    {
        this.usePhone = usePhone;
    }

    public String getUsePhone() 
    {
        return usePhone;
    }

    public void setDriverName(String driverName) 
    {
        this.driverName = driverName;
    }

    public String getDriverName() 
    {
        return driverName;
    }

    public void setDriverPhone(String driverPhone) 
    {
        this.driverPhone = driverPhone;
    }

    public String getDriverPhone() 
    {
        return driverPhone;
    }

    public void setOrderPrice(BigDecimal orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getOrderPrice() 
    {
        return orderPrice;
    }

    public void setServiceTime(String serviceTime) 
    {
        this.serviceTime = serviceTime;
    }

    public String getServiceTime() 
    {
        return serviceTime;
    }

    public void setServiceMileage(String serviceMileage) 
    {
        this.serviceMileage = serviceMileage;
    }

    public String getServiceMileage() 
    {
        return serviceMileage;
    }

    public void setPayId(Long payId) 
    {
        this.payId = payId;
    }

    public Long getPayId() 
    {
        return payId;
    }

    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setOrderForm(Long orderForm) 
    {
        this.orderForm = orderForm;
    }

    public Long getOrderForm() 
    {
        return orderForm;
    }

    public void setOrderStatus(Long orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() 
    {
        return orderStatus;
    }

    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }

    public void setServiceType(Long serviceType) 
    {
        this.serviceType = serviceType;
    }

    public Long getServiceType() 
    {
        return serviceType;
    }

    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("serviceName", getServiceName())
            .append("vehicleLevel", getVehicleLevel())
            .append("upAddress", getUpAddress())
            .append("downAddress", getDownAddress())
            .append("vehiclePeople", getVehiclePeople())
            .append("vehiclePhone", getVehiclePhone())
            .append("usePeople", getUsePeople())
            .append("usePhone", getUsePhone())
            .append("driverName", getDriverName())
            .append("driverPhone", getDriverPhone())
            .append("orderPrice", getOrderPrice())
            .append("serviceTime", getServiceTime())
            .append("serviceMileage", getServiceMileage())
            .append("payId", getPayId())
            .append("orderTime", getOrderTime())
            .append("useTime", getUseTime())
            .append("payTime", getPayTime())
            .append("orderForm", getOrderForm())
            .append("orderStatus", getOrderStatus())
            .append("couponId", getCouponId())
            .append("serviceType", getServiceType())
            .append("payStatus", getPayStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
